package com.wqz.service.impl;

import com.wqz.dao.UserDao;
import com.wqz.service.UserService;

public class UserServiceImpl implements UserService {

    private String meg;
    private UserDao userDao;

    @Override
    public int show() throws Exception {
        System.out.println("这是UserService");
        return userDao.show();
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public String getMeg() {
        return meg;
    }

    public void setMeg(String meg) {
        this.meg = meg;
    }

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "meg='" + meg + '\'' +
                ", userDao=" + userDao +
                '}';
    }
}
